package com.esm.sm800.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import com.esm.sm800.R;
import com.esm.sm800.sm800floating.browserReport;

//人员添加
public class TjryActivity extends Activity implements View.OnClickListener{

    private final String TAG = "TjryActivity";

    private TextView tv_bt1;
    private TextView tv_bt2;
    private TextView tv_bt3;

    private TextView tv_bt4;
    private TextView tv_bt5;
    private TextView tv_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);

        setContentView(R.layout.activity_tjry);

//        tv_bt1 = (TextView) findViewById(R.id.tv_bt1);
//        tv_bt2 = (TextView) findViewById(R.id.tv_bt2);
//        tv_bt3 = (TextView) findViewById(R.id.tv_bt3);
//        tv_bt4 = (TextView) findViewById(R.id.tv_bt4);
//        tv_bt5 = (TextView) findViewById(R.id.tv_bt5);
//        tv_back = (TextView) findViewById(R.id.tv_back);

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }

    public static final int REFRESH_UI = 1101;
    Handler mHandler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
            if (msg.what == REFRESH_UI) {

            }
        }
    };

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            default:
                break;
            case R.id.tv_bt1:
                onBt1();
                break;
            case R.id.tv_bt2:
                onBt2();
                break;
            case R.id.tv_bt3:
                onBt3();
                break;
            case R.id.tv_bt4:
                onBt4();
                break;
            case R.id.tv_bt5:
                onBt5();
                break;
            case R.id.tv_back:
                break;
        }
    }

    private void onBt1() {
        Intent intent = new Intent(this, browserReport.class);
        startActivity(intent);

    }
    private void onBt2() {


    }
    private void onBt3() {


    }
    private void onBt4() {
        Intent intent = new Intent(this, TjryActivity.class);
        startActivity(intent);
    }

    private void onBt5() {

    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (resultCode != RESULT_OK) {
            return;
        }
    }


}
